import request from '../utils/request'
export function homeCategoryHead () {
  return request({
    url: '/home/category/head'
  })
}
// 二级类目
export function category (id) {
  return request({
    url: '/category',
    params: {
      id
    }
  })
}
//  筛选区域
export function categoryFilter (id) {
  return request({
    url: '/category/sub/filter',
    params: {
      id
    }
  })
}
// 筛选内容结果
export function categoryGoods (data) {
  return request({
    url: '/category/goods',
    method: 'post',
    data
  })
}
